// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1

Item {
    id: route_location_from
    width: 480
    height: 854
    clip: true

    signal useMyLocation()
    signal useMapCenter()
    signal cancel()

    MouseArea
    {
        anchors.fill: parent
        onClicked: {}
    }

    Rectangle {
        id: rectangle1
        gradient: Gradient {
            GradientStop {
                position: 0
                color: "#00000000"
            }

            GradientStop {
                position: 0.260
                color: "#000000"
            }

            GradientStop {
                position: 0.540
                color: "#000000"
            }

            GradientStop {
                position: 0.980
                color: "#00000000"
            }
        }
        opacity: 0.780
        anchors.fill: parent
    }

    Mbutton {
        id: mbutton1
        x: 250
        y: 110
        text_size: 33
        textstring: "自己位置"

        onButtonclick:
        {
            useMyLocation();
        }
    }

    Mbutton {
        id: mbutton2
        x: 140
        y: 248
        text_size: 33
        textstring: "地图中心点"

        onButtonclick:
        {
            useMapCenter();
        }
    }

    Mbutton {
        id: mbutton3
        x: 30
        y: 398
        textstring: "取消"

        onButtonclick:
        {
            cancel();
        }
    }

    Rectangle {
        id: rectangle2
        x: -122
        y: -136
        width: 2000
        height: 2000
        color: "#00000000"
        radius: 999
        smooth: true
        border.width: 3
        border.color: "#ffffff"
    }

    Rectangle {
        id: rectangle3
        x: 159
        y: -72
        width: 2000
        height: 2000
        color: "#00000000"
        radius: 999
        smooth: true
        border.color: "#ffffff"
        border.width: 3
    }
}
